import request from '@/utils/request'

// 查询陪桌数据池列表
export function listPool(query) {
  return request({
    url: '/mahjong/pool/list',
    method: 'get',
    params: query
  })
}
export function loadupdatePool() {
  return request({
    url: '/mahjong/pool/loadupdatePool',
    method: 'get'
  })
}

export function selectdetails(query) {
  return request({
    url: '/mahjong/pool/selectdetails',
    method: 'get',
    params: query
  })
}
export function myselectdetails(query) {
  return request({
    url: '/mahjong/pool/myselectdetails',
    method: 'get',
    params: query
  })
}

export function selectdetails2(query) {
  return request({
    url: '/mahjong/pool/selectdetails2',
    method: 'get',
    params: query
  })
}
export function matchdesk(query) {
  return request({
    url: '/mahjong/pool/match',
    method: 'get',
    params: query
  })
}

export function chengju(query) {
  return request({
    url: '/mahjong/pool/chengju',
    method: 'get',
    params: query
  })
}



// 查询陪桌数据池详细
export function getPool(id) {
  return request({
    url: '/mahjong/pool/' + id,
    method: 'get'
  })
}
// 查询陪桌数据池详细
export function chengjuList() {
  return request({
    url: '/mahjong/desking/chengjuList',
    method: 'get'
  })
}
// 新增陪桌数据池
export function addPool(data) {
  return request({
    url: '/mahjong/pool',
    method: 'post',
    data: data
  })
}

// 修改陪桌数据池
export function updatePool(data) {
  return request({
    url: '/mahjong/pool',
    method: 'put',
    data: data
  })
}

// 删除陪桌数据池
export function delPool(id) {
  return request({
    url: '/mahjong/pool/' + id,
    method: 'delete'
  })
}

// 导出陪桌数据池
export function exportPool(query) {
  return request({
    url: '/mahjong/pool/export',
    method: 'get',
    params: query
  })
}
// 顶部成局数据池
export function topchengju(id) {
  return request({
    url: '/mahjong/pool/topchengju/' + id,
    method: 'get'
  })
}
